from machine import Pin, UART

LED_C5 = 37
LED_OUT1 = Pin(("LED1", LED_C5), Pin.OUT_PP)

uart = UART(3, 9600)                         
uart.init(9600, bits=8, parity=None, stop=1)

while True:
    byte = uart.read()
    _ = uart.write(byte)
    if byte == b'1':
        LED_OUT1.value(1)
    elif byte == b'0':
        LED_OUT1.value(0)
